package org.jeecg.modules.basic.print.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.basic.print.entity.*;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 打印配置
 * @Author: jeecg-boot
 * @Date: 2023-09-13
 * @Version: V1.0
 */
public interface IPrintConfigService extends IService<PrintConfig> {

    /**
     * 添加一对多
     *
     * @param printConfig
     * @param wmsDocumentTypeFieldsList
     * @param wmsDocumentTypeStatusList
     */
    public void saveMain(PrintConfig printConfig, List<WmsDocumentTypeFields> wmsDocumentTypeFieldsList, List<WmsDocumentTypeStatus> wmsDocumentTypeStatusList, List<WmsMaterialFields> wmsMaterialFieldsList);

    /**
     * 修改一对多
     *
     * @param printConfig
     * @param wmsDocumentTypeFieldsList
     * @param wmsDocumentTypeStatusList
     */
    public void updateMain(PrintConfig printConfig, List<WmsDocumentTypeFields> wmsDocumentTypeFieldsList, List<WmsDocumentTypeStatus> wmsDocumentTypeStatusList, List<WmsMaterialFields> wmsMaterialFieldsList);

    /**
     * 删除一对多
     *
     * @param id
     */
    public void delMain(String id);

    /**
     * 批量删除一对多
     *
     * @param idList
     */
    public void delBatchMain(Collection<? extends Serializable> idList);

    /**
     * 通过业务类型和单据类型查询打印信息
     *
     * @return
     */
    List<PrintShowDTO> getPrintShowInfo();

}
